import request from '@/utils/request'
//列表
export function list(data) {
  return request({
    url: "/device/manage/get/codeList",
    method: 'post',
    data
  })
}
//新增
export function add(params) {
  return request({
    url: "/device/manage/create/code",
    method: "get",
    params
  })
}
//查看
export function detail(id) {
  return request({
    url: "/auth/sysMsg/detail/" + id,
    method: "post"
  })
}

//删除
export function del(id) {
  return request({
    url: "/auth/sysMsg/delSystemMsg/" + id,
    method: "post"
  })
}

//批量删除
export function bacthDel(data) {
  return request({
    url: "/auth/sysMsg/batchDel",
    method: "post",
    data
  })
}